package com.hangim.pce.service;

import com.hangim.pce.model.SysDrugUsageRule;
import com.hangim.pce.common.service.BaseEntityService;

import java.util.List;

/**
 * <p>
 * 药品用量规则表 服务类
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-19
 */
public interface SysDrugUsageRuleService extends BaseEntityService<SysDrugUsageRule> {

    /**
     * 根据药品名称获取药品用量规则
     *
     * @param name
     * @return
     */
    List<SysDrugUsageRule> getDrugUsageRulesByName(String name);

    /**
     * 根据药品Id获取药品用量规则
     *
     * @param drugId
     * @return
     */
    List<SysDrugUsageRule> getDrugUsageRulesByDrugId(Long drugId);
}
